package com.medical.app.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * 院内楼栋
 */
@Data
@TableName(value = "mar_hospital_building")
public class HospitalBuilding {
    /**
     * 主键
     */
    @TableId(value = "hospital_building_id", type = IdType.AUTO)
    private Integer hospitalBuildingId;

    /**
     * 楼栋名称
     */
    @TableField(value = "hospital_building_name")
    private String hospitalBuildingName;

    /**
     * 医院id
     */
    @TableField(value = "hospital_id")
    private Long hospitalId;

    /**
     * 创建时间
     */
    @TableField(value = "creat_time")
    private Date creatTime;

    /**
     * 状态 0 删除 1 可用
     */
    @TableField(value = "`state`")
    private Integer state;
}